package com.cyy.singleton_pattern;


public class LazyDemo1 {
    public static void main(String[] args) {
        //创建Aa对象
        LazyModeOne1 Aa = LazyModeOne1.getInstance();
        //创建Bb对象
        LazyModeOne1 Bb = LazyModeOne1.getInstance();

        Aa.setName("小明");

        System.out.println(Aa.getName());
        System.out.println(Bb.getName());
    }

}
